﻿using CurrentUserDemo.Domain.CurrentUsers;

namespace CurrentUserDemo.Domain.OrderServices;

public class OrderService
{
    private readonly ICurrentUser _currentUser;

    public OrderService(ICurrentUser currentUser)
    {
        _currentUser = currentUser;
    }

    public string Create(string name)
    {
        Console.WriteLine($"OrderService: {name}");
        return $"{name}:{_currentUser.GetUserId()!.Value}";
    }
}
